package com.vq3.digitalizationsoftwareintegrates.Utils;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.AbstractEnvironment;
import org.springframework.core.env.Environment;

import javax.annotation.Resource;

@Configuration
@Data
@PropertySource(value = {"classpath:ImgPath.yaml"},encoding = "UTF-8")
public class GetYAML {
    @Resource
    Environment environment;

/**临时图片路径
 * */
    public String getTempImgPath() {
        return environment.getProperty("TempImagePath");
    }
    public String getResourceTempImagePath(){return environment.getProperty("ResourceTempImagePath");}
/**系统图片路径
 * */
    public String getSysImgPath() {
        return environment.getProperty("SysImagePath");
    }
    /**点检异常图片的路径
     **/
    public String getSCEXImgPath() {
        return environment.getProperty("SCEXImgPath");
    }

}
